/**
 * 
 */
package cn.ivicar.app.controller.util;

public enum DeviceParamEnum {

	CANTYPE(1, "can_type"), SKIN(2, "skin"), FRONT_BACK(3, "front_back"), LEFT_RIGHT(4, "left_right"), TRACE_TYPE(5, "trace_type");

	private int index;
	private String value;

	DeviceParamEnum(int index, String value) {
		this.index = index;
		this.value = value;
	}

	public int getIndex() {
		return index;
	}

	public String getValue() {
		return value;
	}

	public static DeviceParamEnum get(int index) {
		switch (index) {
		case 1:
			return CANTYPE;
		case 2:
			return SKIN;
		case 3:
			return FRONT_BACK;
		case 4:
			return LEFT_RIGHT;
		case 5:
			return TRACE_TYPE;
		default:
			return null;
		}
	}

}
